package com.raja.servingStation.common.redis;


import java.util.ResourceBundle;

public class PropertiesUtil {
	private static final String CONFIG_FILE_NAME = "config";

	private static ResourceBundle bundle = null;

	public static final String getValue(String key) {
		String val = null;
		if (DataUtil.isEmpty(key))
			return null;

		try {
			if (bundle == null)
				bundle = ResourceBundle.getBundle(CONFIG_FILE_NAME);

			if (bundle != null)
				val = bundle.getString(key);
		} catch (Exception e) {
		}
		return val;
	}

	public static void main(String[] args) {
		System.out.println(getValue("CACHE_LIST"));
	}
}
